import request from '@/utils/request'

// 查询贴标机生产过程记录列表
export function listLabel(query) {
  return request({
    url: '/productionProcess/label/list',
    method: 'get',
    params: query
  })
}

// 查询贴标机生产过程记录详细
export function getLabel(id) {
  return request({
    url: '/productionProcess/label/' + id,
    method: 'get'
  })
}

// 新增贴标机生产过程记录
export function addLabel(data) {
  return request({
    url: '/productionProcess/label',
    method: 'post',
    data: data
  })
}

// 修改贴标机生产过程记录
export function updateLabel(data) {
  return request({
    url: '/productionProcess/label',
    method: 'put',
    data: data
  })
}

export function checkLabel(data) {
  return request({
    url: '/productionProcess/label/check',
    method: 'put',
    data: data
  })
}
// 删除贴标机生产过程记录
export function delLabel(id) {
  return request({
    url: '/productionProcess/label/' + id,
    method: 'delete'
  })
}


// 读取数据
export function handleDate(query) {
  return request({
    url: '/Productionline/interfaceReport/getTBJ',
    method: 'get',
    params: query
  })
}

export function handleDate2(query) {
  return request({
    url: '/Productionline/interfaceReport/getTBJ2',
    method: 'get',
    params: query
  })
}

export function listSelect2(query) {
  return request({
    url: '/basic/eqpfactory/listSelect2',
    method: 'get',
    params: query
  })
}
